const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  publicPath: '/',
  devServer: {
    compress: true,
    disableHostCheck: true, //webpack4.0 开启热更新
  },

  configureWebpack: {
    name: 'wk-admin-frontend',
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },
}